<!-- 登录组件, 普通登录 -->
<template>
  <body id="poster">
  <div class="login_title">
    <img class="sidebar-logo" src="../assets/img/logo.png"/>
    <h1>Mason's APIBE</h1>
  </div>
  <div class="logo_form animated fadeIn">
    <div class="form_title">用户登录</div>
    <div class="form_input user">
      <input placeholder="用户名" v-model="form.account"/>
    </div>
    <div class="form_input password">
      <input type="password" placeholder="密码" v-model="form.password"/>
    </div>
    <p></p>
    <div class="form_btn">
      <a href="#" class="dlb_tn" style="color:#fff !important" @click="login">登录</a>
    </div>
  </div>
  </body>
</template>


<script>
import utils from "../assets/js/utils";
import {loginHandler} from "../assets/js/manage";
export default {
  name: "Login",
  data() {
    return {
      form: {
        account: "",
        password: "",
      },
    };
  },
  created() {
  },
  methods: {
    login() {
      loginHandler(this.form.account, this.form.password, this.$router)
    }
  },
};
</script>

<style>
#poster {
  background: url("../assets/img/zeb.jpg") no-repeat center;
  height: 100%;
  width: 100%;
  background-size: cover;
  position: fixed;
}

body {
  margin: 0px;
  padding: 0;
}

.login_title {
  width: 90%;
  height: 75px;
  margin: 7% auto 0;
  line-height: 75px;
  font-family: "华文中宋", serif;
  color: #1d81fd;
  text-align: center;
}

.login_title h1 {
  display: inline-block;
  font-size: 44px;
  background-image: linear-gradient(#8fefff, #1765ff);
  /*background-clip: text;*/
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  padding: 0;
}

.logo_form {
  width: 420px;
  height: 680px;
  margin-left: 55%;
  margin-top: 6.5%;
  position: relative;
  background: url("../assets/img/bc55530853727e38780b18a224459793.png") no-repeat;
}

.form_title {
  width: 100%;
  height: 120px;
  line-height: 120px;
  color: #0bb2ff;
  font-size: 24px;
  text-align: center;
  padding-top: 20px;
}

.logo_form p {
  display: block;
  width: 300px;
  text-align: right;
  color: #06bcff;
  margin: 20px auto;
}

.user {
  background-image: url("../assets/img/ebc8ccba50ffeefc4a1d98a70cea2656.png");
}

.password {
  background-image: url("../assets/img/62f358e07ca5ca3f7eddeaf33d9b5fbb.png");
}

.form_input {
  width: 300px;
  margin: 0 auto 40px auto;
  background-color: rgba(14, 177, 255, 0.2);
  background-repeat: no-repeat;
  background-position: 260px center;
  height: 45px;
  line-height: 45px;
  position: relative;
}

.form_input input {
  display: block;
  width: 250px;
  height: 43px;
  line-height: 45px;
  outline: none;
  background: none;
  border: none;
  color: #1db2ff;
  padding: 0 40px 0 10px;
}

.j1 {
  left: 0;
  bottom: 0;
  background: url("../assets/img/c8d2d0296c9a2ea488463f594242d50c.png") no-repeat;
}

.j2 {
  right: 0;
  bottom: 0;
  background: url("../assets/img/be0ff7f3408e2324fc384fd9173583a6.png") no-repeat;
}

.j3 {
  right: 0;
  top: 0;
  background: url("../assets/img/869737897c30cbeab67d502c32d8cef6.png") no-repeat;
}

.j4 {
  left: 0;
  top: 0;
  background: url("../assets/img/4203a2109125ed63e654855cc9fa71e3.png") no-repeat;
}

.horn {
  width: 10px;
  height: 10px;
  position: absolute;
}

.form_btn {
  width: 295px;
  margin: 0 auto;
}

.dlb_tn {
  display: inline-block;
  height: 50px;
  line-height: 50px;
  width: 100%;
  //background: url("../assets/img/button.png");
  border-radius: 5px;
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
}

.dlb_tn:hover {
  background: #0f93ef;
}

.sidebar-logo {
  width: 75px;
  height: 75px;
  vertical-align: middle;
  margin: 0px 5px 20px 15px;
}
</style>
